<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE HTML>

<html>
<head>
<jsp:include page="../defaults/tagHeadContent.jsp" />
<script src="/srp/js/jquery-1.7.js"></script>
<script type="text/javascript" src="/srp/js/checkBoxsManage.js"></script>

</head>
<body>
	<jsp:include page="../defaults/header.jsp" />


	<form id="formTaskList" name="formTaskList" action="/srp/task/linkTopics"
		method="POST">

		<div id="wrapper">
			<div id="content">
				<jsp:include page="listTasksPrint.jsp" />
			</div>
		</div>
		<input type="hidden" name="selectedIdsOfTasks" id="selectedIdsOfTasks"
			value="${selectedIdsOfTasks}" />
		<input type="hidden"
			name="selectedIdsOfTopics" id="selectedIdsOfTopics"
			value="${selectedIdsOfTasks}" />
		<input type="button"
			value="Associar tópicos para as tarefas acima" id="btLinkTopics"></input><BR />
		<div id="wrapper">
			<div id="content">
				<div id="listTopics">
					<jsp:include page="../topic/listTopicsPrint.jsp" />
				</div>
			</div>
		</div>
	</form>


	<script type="text/javascript">
		activate_CheckAll("chkTopic_", "chkTopics_all");

		$('#btLinkTopics').click(
				function() {
					storeValuesByIdsOfCheckButtons("chkTopic_",
							"selectedIdsOfTopics", " ");
				});
		$('#btLinkTopics').click(function() {
			document.getElementById("formTaskList").submit();
		});
	</script>
</body>
</html>
